<!DOCTYPE html>
<html>
<head>
	<title>修改登录密码</title>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<script type="text/javascript" src="__PUBLIC__/hdjs/jquery-1.11.3.min.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/hdjs/hdjs.css"/>
    <script type="text/javascript" src="__PUBLIC__/hdjs/hdjs.min.js"></script>
	<link href="__PUBLIC__/css/mine.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<div class="div_head">
		<span>
			<span style="float: left;">当前位置是：用户管理 >>修改登录密码</span>
		</span>
	</div>
	<div class="hd-w500" style="padding:20px;margin:0 auto">
	<form name="form1" method="post" action="__SELF__">
	<input name="mg_id" type="hidden" value="{$mg.mg_id}" />
		<table class="hd-table hd-table-form hd-form">
		<thead>
        <tr>
          <th colspan="2">修改【{$Think.session.mg_name}】的登录密码</th>
        </tr>
		</thead>
        <tr>
          <td class="hd-w80">旧密码：</td>
          <td><input name="old_pwd" type="password" class="hd-w200" /></td>
        </tr>
        <tr>
          <td>新密码：</td>
          <td><input name="mg_pwd" type="password" class="hd-w200" /></td>
        </tr>
        <tr>
          <td>确认新密码：</td>
          <td><input name="c_mg_pwd" type="password" class="hd-w200" /></td>
        </tr>
        <tr>
          <td colspan="2" align="center"><input type="submit" class="hd-btn hd-btn-default" value="提交" /></td>
        </tr>
      </table>
    </form>
	</div>
<!--表单验证Start-->
<script>
    $(function () {
        $('form').validate({
            old_pwd: {
                rule: {
                    required: true
                },
                error: {
                    required: '旧密码不能为空'
                },
                success: '',
                message: '请输入旧密码'
            },
            mg_pwd: {
                rule: {
                    required: true,
                    confirm: 'c_mg_pwd'
                },
                error: {
                    required:'密码不能为空',
                    confirm: '两次密码不一致'
                }
            },
        })
    })
</script>
<!--表单验证End-->
    </body>
</html>
